package com.wencun.cunpicturebackend.controller;

import com.wencun.cunpicturebackend.common.BaseResponse;
import com.wencun.cunpicturebackend.common.ResultUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: cun-picture-backend
 * @ClassName MainController
 * @description:
 * @author: wencun
 * @create: 2025-08-16 23:07
 * @Version 1.0
 **/
@RestController
@RequestMapping("/")
public class MainController {

    /**
     * 健康检查
     */
    @GetMapping("/health")
    public BaseResponse<String> health() {
        return ResultUtils.success("ok");
    }
}
